import VueRouter from "vue-router";
import Vue from 'vue';

const Login = () => import('../components/Login')
const Main = () => import('../components/InputMain')

Vue.use(VueRouter)

export default new VueRouter({
  routes: [
    {
      path: '',
      redirect: '/login'
    },
    {
      path: '/login',
      component: Login,
      meta: {
        title: '登录'
      }
    },
    {
      path: '/main',
      component: Main,
      meta: {
        title: '主页'
      }
    }
  ]
})